package com.ivan.stu.lgnotetooldemo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import android.view.View;
import android.widget.Button;

import com.ivan.stu.notetool.callback.OpenNoteCallBack;
import com.ivan.stu.notetool.utils.NoteToolManager;




public class SplashActivity extends AppCompatActivity implements OpenNoteCallBack{

    private Button bt_start,bt_addNote,bt_photo,bt_edit;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_main);

     //   verifyPermissions(this);

        bt_start = findViewById(R.id.bt_start);
        bt_addNote = findViewById(R.id.bt_addNote);
        bt_edit = findViewById(R.id.bt_edit_note);


        bt_start.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                NoteToolManager.getInstance().closeNotetool();


                NoteToolManager.getInstance().openLancooNoteTool(SplashActivity.this, "http://192.168.3.158:10191/",
                        "S0-S508158-813E", "tcstu179", "tcstu179", 2,
                        "9BD8D969-F90D-4875-99EF-C3A9EB58835A", "s21", "学习小助手"
                        ,"S1-English", "英语",
                        "荷塘月色", "",
                        "","777",-1,"http", new OpenNoteCallBack() {
                    @Override
                    public void onSuccess(String result) {

                    }

                    @Override
                    public void onFailure(String reason) {

                    }
                });
            }
        });

    }

    @Override
    public void onSuccess(String result) {

    }

    @Override
    public void onFailure(String reason) {

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

}
